package com.springboot;

import lombok.extern.log4j.Log4j2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * springBoot主入口
 *
 * @author supu
 * @create 2018-12-12 11:36
 **/
@Log4j2
@SpringBootApplication
@ComponentScan("com.springboot")
@MapperScan({"com.springboot.db.mapper","com.springboot.mapper"})
public class ConsumerApplication {
    

    public static void main(String[] args) {

        SpringApplication application = new SpringApplication(ConsumerApplication.class);
        ConfigurableApplicationContext ctx = application.run(args);

        ConfigurableEnvironment environment = ctx.getEnvironment();

       /* log.info(environment.getProperty("env"));
        log.info(environment.getProperty("server.port"));
        log.info("webPath:" + environment.getProperty("web.path"));*/
    }
}
